package com.baizhi.controller;

import com.baizhi.annotations.MyAdvice;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lzm
 * @version 1.0
 * @description: TODO
 * @date 2022/6/16 12:05
 */
@RestController
public class DemoController {

    @RequestMapping("demo1")
    public String demo1() {
        return "12";
    }

    @RequestMapping("demo2")
    public int demo2(int a,int b) {
        return a + b;
    }

    @RequestMapping("demo3")
    @MyAdvice
    public int demo3(Integer a,Integer b) {
        return a + b;
    }
}
